﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ExcellentCRM.DataService.Models
{
    /// <summary>
    /// 模拟考试成绩
    /// </summary>
    public class TestResult : BaseModel
    {   
        /// <summary>
        /// 考号
        /// </summary>
        [StringLength(30)]
        public string StuNumber { get; set; }

        /// <summary>
        /// 期次
        /// </summary>
        public int TestNumber { get; set; }

        public long StuClientId { get; set; }

        /// <summary>
        /// 类型题
        /// </summary>
        [StringLength(10)]
        public string TestType { get; set; }

        /// <summary>
        /// 总分
        /// </summary>
        public int TotalScore { get; set; }

        [ForeignKey("StuClientId")]
        public StuClient StuClient { get; set; }
    }
}